/*
 * =====================================================================================
 *
 *       Filename:  FileLogger.cpp
 *
 *    Description:  文件logger
 *
 *        Version:  1.0
 *        Created:  2013年06月16日 19时37分19秒
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  YOUR NAME (), 
 *   Organization:  
 *
 * =====================================================================================
 */

#include "FileLogger.h"

using namespace NetComp;

FileLogger::FileLogger() : m_strLoggerName("")
						   ,m_bEnable(true), m_eFileLogMode(FLM_SINGLE_FILE)
{
}

FileLogger::~FileLogger()
{}

		/*
		 *
		 * */
bool FileLogger::Log(const char* szMsg  )
{
	
}
		/*  */
bool FileLogger::IsEnable() 
{
	return m_bEnable;
}
		/*
		 * */
void FileLogger::SetEnable(bool bEnable) 
{
	m_bEnable = bEnable;
}
		/*  */
	
		/* file name setter / getter */
void FileLogger::SetLoggerName(const char* szLoggerName)
{
	m_strLoggerName = szLoggerName;
}
const char* FileLogger::GetLoggerName() 
{
	return m_strLoggerName.c_str();
}
//---------------------------------------
void FileLogger::SetFileLogMode(FileLogMode eFLM)
{
	m_eFileLogMode = eFLM;
}
FileLogMode FileLogger::GetFileLogMode()
{
	return m_eFileLogMode;
}

